package lei;

import java.io.File;
import java.io.IOException;
import java.io.ObjectInputStream.GetField;
import java.util.Date;
import java.util.Observer;

import model.EMedium;
import model.EMediumPropertiesData;
import model.EMediumType;
import model.IShelvesFacade;
import model.LEI;
import model.LibraryFacade;
import model.ShelvesFacade;
import model.lendables.Lendable;
import model.lendables.Library;
import model.rentals.BookRental;
import model.rentals.Page;
import model.rentals.Rental;
import view.StartupUI;

/**
 * The main project class
 * 
 * @author fmartins
 *
 */
public class Main {
	
	public static void main(String[] args) throws IOException {
	
		EMediumPropertiesData data = new EMediumPropertiesData();
		
		Lendable lendableteste= new Lendable(EMediumType.IMAGE, data);
		
		Library libraryTeste = new Library();
		
		// create the main application class
		LEI lei = new LEI();
			
		
		ShelvesFacade shelveshandler = lei.getShelveshandler();
		LibraryFacade libraryhandler=null;
		
		
		// start the UI
		StartupUI.run(new LEIBookshelfUIDelegate(shelveshandler, libraryhandler),
				new LEIEMediaUIDelegate(), new LEIEMediumMetadataUIDelegate());
	}
}
